package com.amrit.autowiring.constructor;

public class A {
	private B b;
	private String name;

	public A( B b, String name ) {
		this.b = b;
		this.name = name;
	}
	public B getSpellChecker() {
		return b;
	}
	public String getName() {
		return name;
	}

	public void doStuffA() {
		System.out.println("doStuff of A");
		b.doStuffB();
	}
}